//package com.fy.mapper;
//
//import com.baomidou.mybatisplus.core.mapper.BaseMapper;
//import com.fy.pojo.entity.Coupon;
//import org.apache.ibatis.annotations.Mapper;
//import org.apache.ibatis.annotations.Update;
//
//@Mapper
//public interface CouponMapper extends BaseMapper<Coupon> {
//
//    @Update("update coupon set coupon_stock=coupon_stock-1 where coupon_type=#{couponType} and coupon_stock>0;")
//    int updateStock(Integer couponType);
//}
